package com.lc.services;

import com.lc.entities.FileInfo;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class DownloadService extends Service{
	public static final String ACTION_START = "ACTION_START";
	public static final String ACTION_STOP = "ACTION_STOP";
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		FileInfo fileinfo=null;
		switch (intent.getAction()) {
		
		case ACTION_START:
			 fileinfo = (FileInfo) intent.getSerializableExtra("fileinfo");
			break;
		case ACTION_STOP:
			 fileinfo = (FileInfo) intent.getSerializableExtra("fileinfo");
			
			break;

		default:
			break;
		}
		
		return super.onStartCommand(intent, flags, startId);
	}
	
	
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}

}
